package com.inspur.xiaoju.repository;

import com.inspur.xiaoju.model.Survey;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface SurveyRepository extends MongoRepository<Survey, String> {
    List<Survey> findByWorkspaceId(String workspaceId);
    Optional<Survey> findBySurveyPath(String surveyPath);
    List<Survey> findByCreatorId(String creatorId);
}